﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DevExpress.Xpo;
using Component;

public partial class FrontEnd_Body_Center_Search : System.Web.UI.UserControl
{
    public XPCollection<Product> _xpProduct = new XPCollection<Product>(Component.KetNoiCSDL.session);
    public ArrayList _products = new ArrayList();
    protected string _paggingCollection;
    protected void Page_Load(object sender, EventArgs e)
    {
        _xpProduct = null;
        string keyWord = QueryHelper.GetQueryString(Request, ConstString._prodName).Trim();
        if ( keyWord!= "")
            _xpProduct = ProductDB.GetObjectByName(keyWord,false);
        ArrayList al = new ArrayList();
        al.AddRange(_xpProduct.ToArray());
        _products = Pager.ShowInfomationPaging("0",ConstString._AjaxProduct, 8, 3, al, ref _paggingCollection);
    }
}
